﻿package  {
	import flash.display.Loader;
	import flash.events.Event;
	import flash.net.URLLoader;
	import flash.net.URLRequest;
	import flash.display.Sprite;

	public class AbstractLoader extends Sprite{
		
		public var _load:URLLoader;
		
		public function AbstractLoader(path:String) {
			loadAsset(path);
		}
		
		public function loadAsset(path:String) {
			
			_load = new URLLoader();
			_load.addEventListener(Event.COMPLETE, onComplete);
			_load.load(new URLRequest(path));
			
		}
		
		protected function onComplete(e:Event):void {
			
		}

	}
	
}
